import { postRequest, getRequest } from '/@/lib/axios';

export const reportApi = {

    getProjectReport: (param) => {
        return postRequest('/tm/report/getProjectReport', param);
      },

      getRec3ProjectReport: (proId) => {
        return getRequest(`/tm/report/getRec3ProjectReport?proId=${proId}`);
      },

      getRec3PatrolReport: () => {
        return getRequest('/tm/report/getRec3PatrolReport');
      },

      getTreeChart: () => {
        return getRequest('/tm/report/getTreeChart');
      },

      getHasRootProject: () => {
        return getRequest('/tm/report/getHasRootProject');
      },

      getHasDept: () => {
        return getRequest('/tm/report/getHasDept');
      },
}